<!DOCTYPE html>
<html>
  <head>
    <title>3FDS Admnistrator Panel</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    {{ Asset::container('bootstrapper')->styles() }}
    <style type="text/css"> 
        .loaders {
            position:   fixed;
            top:        0;
            left:       0;
            height:     100%;
            width:      100%;
            opacity: 1;
            background:url("{{ url('../bundles/admin/img/loader.gif'); }}") 
                      50% 50% 
                      no-repeat;

        }
    </style>

  </head>
  <body>
    
<div class="container-fluid">
  <div class="row-fluid">
    <div class="span2">
      <!--Sidebar content-->
      {{$sidebar}}
    </div>
    <div class="span10">
      <!--Body content-->
       @yield('content')
    </div>
  </div>
</div>

<!-- <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script> -->
    <!-- {{ HTML::script('js/jquery.js') }}  -->


    {{ Asset::container('bootstrapper')->scripts() }}
    @include('admin::plugin.loggedin')
    @section('scripts')
    <script type="text/javascript">
      $(document).ajaxStart(function() {
        $('body').modalmanager('loading');
      });
      $(document).ajaxComplete(function() {
        $('body').modalmanager('loading');
      });

      
      function validated(form,data){

        for(x in data){
          $(".modal-body #"+form+" :input[name='"+x+"']").focus().addClass('error').attr('placeholder',data[x][0]).val('');
        }

      }
    </script>
    @yield('scripts')
  </body>
</html>